package com.cm.caseManagement.dao;

import com.cm.caseManagement.pojo.entity.CmLoansType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 贷款种类Mapper接口
 *
 * @author ruoyi
 * @date 2025-10-05
 */
@Mapper
public interface CmLoansTypeMapper
{
    /**
     * 查询贷款种类
     *
     * @param id 贷款种类主键
     * @return 贷款种类
     */
    public CmLoansType selectCmLoansTypeById(Long id);

    /**
     * 查询贷款种类列表
     *
     * @param cmLoansType 贷款种类
     * @return 贷款种类集合
     */
    public List<CmLoansType> selectCmLoansTypeList(CmLoansType cmLoansType);

    /**
     * 新增贷款种类
     *
     * @param cmLoansType 贷款种类
     * @return 结果
     */
    public int insertCmLoansType(CmLoansType cmLoansType);

    /**
     * 修改贷款种类
     *
     * @param cmLoansType 贷款种类
     * @return 结果
     */
    public int updateCmLoansType(CmLoansType cmLoansType);

    /**
     * 删除贷款种类
     *
     * @param id 贷款种类主键
     * @return 结果
     */
    public int deleteCmLoansTypeById(Long id);

    /**
     * 批量删除贷款种类
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCmLoansTypeByIds(Long[] ids);
}
